package io.xiyou.user;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.jms.annotation.EnableJms;

@SpringBootApplication(scanBasePackages = {
        "io.xiyou.user",
        "io.xiyou.core",
},
        exclude = MongoAutoConfiguration.class)
@MapperScan("io.xiyou.user.dao.mapper")
@EnableCaching
@EnableJms     //启动消息队列
public class UserApplication {

    public static void main(String[] args) {
        SpringApplication.run(UserApplication.class, args);
    }

}
